package com.handydata.antifraud.common.task;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;

@Slf4j
public class TaskRun {

    @Autowired
    protected ThreadPoolTaskExecutor threadPoolTaskExecutor;

    public TaskRun() {
        this.getV();
    }

    public void getV(){
        log.info(Thread.currentThread().getName()+"--执行--active:" +
                "[线程需要执行的任务个数]taskCount=[{}]," +
                "[线程池在运行过程中已完成的任务数]completedTaskCount=[{}]," +
                "[线程池曾经创建过的最大线程数量]largestPoolSize=[{}]," +
                "[获取当前线程池的线程数量]getPoolSize=[{}]," +
                "[获取活动的线程的数量]getActiveCount=[{}]");
    }

//    protected  final static String path = "/config/application.properties";

    protected  final static String path = "/";

//    protected  final static String path = "D:/software/shbank20200511/shbank-risk/config/application.properties";
}
